const dpServiceOrgBaseModel = (request) => {
	return {
		view_dpServiceOrgBase_page(query = {}) {
			return request('/bussiness/dpServiceOrgBase/page', {
				method: 'post',
				data: query,
			})
		},
		// 详情
		view_dpServiceOrgBase_view(id) {
			return request(`/bussiness/dpServiceOrgBase/${id}`, {
				method: 'get',
			})
		},
		// 根据统一信用代码获取详情
		view_dpServiceOrgBase_creditCode(creditCode) {
			return request(`/bussiness/dpServiceOrgBase/creditCode/${creditCode}`, {
				method: 'get',
			})
		},
		// 导入
		view_dpServiceOrgBase_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgBase/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceOrgBase_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgBase/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 采集
		view_dpServiceOrgBase_gather(query = {}) {
			return request('/bussiness/dpServiceOrgBase/gather', {
				method: 'post',
				data: query,
			})
		},

		// 删除
		view_dpServiceOrgBase_del(ids) {
			return request('/bussiness/dpServiceOrgBase/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 导出
		view_dpServiceOrgBase_exportAll(query = {}) {
			return request('/bussiness/dpServiceOrgBase/exportAll', {
				method: 'post',
				data: query,
			})
		},
		// 不分页查询
		view_dpServiceOrgBase_list(query = {}) {
			return request('/bussiness/dpServiceOrgBase/list', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 扩展信息
const dpServiceOrgExtendModel = (request) => {
	return {
		// 采集
		view_dpServiceOrgExtend_gatherAll(query = {}) {
			return request('/bussiness/dpServiceOrgExtend/gatherAll', {
				method: 'post',
				data: query,
			})
		},
		view_dpServiceOrgExtend_page(query = {}) {
			return request('/bussiness/dpServiceOrgExtend/page', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpServiceOrgExtend_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgExtend/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceOrgExtend_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgExtend/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		//分页查询养老服务组织（养老机构）-服务项目（多个
		view_dpServiceOrgItems_page(query = {}) {
			return request('/bussiness/dpServiceOrgItems/page', {
				method: 'post',
				data: query,
			})
		},
		//查询养老服务组织（养老机构）扩展信息
		view_dpServiceOrgExtend_view(id) {
			return request(`/bussiness/dpServiceOrgExtend/${id}`, {
				method: 'get',
			})
		},
	}
}
// 其他信息
const dpServiceOrgOtherModel = (request) => {
	return {
		// 采集
		view_dpServiceOrgOther_gatherAll(query = {}) {
			return request('/bussiness/dpServiceOrgOther/gatherAll', {
				method: 'post',
				data: query,
			})
		},
		view_dpServiceOrgOther_page(query = {}) {
			return request('/bussiness/dpServiceOrgOther/page', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpServiceOrgOther_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgOther/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceOrgOther_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgOther/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 全字段搜索
		view_dpServiceOrgBase_search(query = {}) {
			return request('/bussiness/dpServiceOrgBase/search/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 老年用品
const dpServiceOrgProductModel = (request) => {
	return {
		view_dpServiceOrgProduct_page(query = {}) {
			return request('/bussiness/dpServiceOrgProduct/page', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpServiceOrgProduct_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgProduct/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceOrgProduct_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgProduct/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}
// 设施设备
const dpServiceOrgDeviceModel = (request) => {
	return {
		view_dpServiceOrgDevice_page(query = {}) {
			return request('/bussiness/dpServiceOrgDevice/page', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpServiceOrgDevice_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpServiceOrgDevice/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpServiceOrgDevice_downloadTemplate(query = {}) {
			return request('/bussiness/dpServiceOrgDevice/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpServiceOrgBaseModel(request),
	...dpServiceOrgExtendModel(request),
	...dpServiceOrgOtherModel(request),
	...dpServiceOrgProductModel(request),
	...dpServiceOrgDeviceModel(request),
})
